/*
 * Copyright (c) 2010. raoqn
 */

package com.yfeng.goodjuhome.service;

import com.yfeng.exception.ServiceException;
import com.yfeng.goodjuhome.model.MessageModel;

import java.util.List;
import java.util.Map;

/**
 * www.goodjuhome.com
 * Created by IntelliJ IDEA.
 * User: rqn
 * Date: 2010-8-14
 * Time: 21:47:02
 */
public interface IMessageService {

    public int sendMessage(MessageModel model) throws ServiceException;

    public int deleteMessage(String[] ids) throws ServiceException;

    /**
     * 查询该用户的留言
     * @param uid
     * @return
     * @throws ServiceException
     */
    public List<Map> querySendMessage(String uid) throws ServiceException;
    public List<Map> querySendMessage(String uid,String limit) throws ServiceException;

    /**
     * 查询别人给我留的言
     * @param uid
     * @return
     * @throws ServiceException
     */
    public List<Map> queryAcceptMessage(String uid) throws ServiceException;
    public List<Map> queryAcceptMessage(String uid,String limit) throws ServiceException;



}
